/**
 * Created by lenovo on 2017/5/2.
 */
(function(){
    //银行卡下拉
    $('.pull_down').on('click',function(){
        var _this = $(this);
        var account_li = $('.account_card li');
        account_li.css('display','block');
        if($(this).attr('index') == 2){
            account_li.css('display','none');
            $('.account_card li:first-child').css('display','block');
            _this.attr('index','1');
        }else{
            _this.attr('index','2');
        }
    })

    //选择银行卡
    $('.account_card li').on('click',function(){
        $('.account_card').prepend($(this));
    })

    //提现接口
    $.ajax({
        url:'',
        type:'',
        dataType:'json',
        success:function(result){

        },
        error:function(result){

        }
    })
})()